import requests

url = 'https://www.baidu.com/s?wd=ip'

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36'
}

data = {
    'wd':'ip'
}

proxy = {
    'http':'223.82.60.202:8060'
}




response = requests.get(url=url,params=data,headers=headers,proxies=proxy)

response.encoding='utf-8'

content = response.text

with open('daili.html','w',encoding='utf-8') as fp:
    fp.write(content)
